package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.SysJobDao;
import com.platform.entity.SysJobEntity;
import com.platform.service.SysJobService;

/**
 * 职位表Service实现类
 *
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2018-03-09 14:40:16
 */
@Service("sysJobService")
public class SysJobServiceImpl implements SysJobService {
    @Autowired
    private SysJobDao sysJobDao;

    @Override
    public SysJobEntity queryObject(Long jobId) {
        return sysJobDao.queryObject(jobId);
    }

    @Override
    public List<SysJobEntity> queryList(Map<String, Object> map) {
        return sysJobDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return sysJobDao.queryTotal(map);
    }

    @Override
    public int save(SysJobEntity sysJob) {
        return sysJobDao.save(sysJob);
    }

    @Override
    public int update(SysJobEntity sysJob) {
        return sysJobDao.update(sysJob);
    }

    @Override
    public int delete(Long jobId) {
        return sysJobDao.delete(jobId);
    }

    @Override
    public int deleteBatch(Long[]jobIds) {
        return sysJobDao.deleteBatch(jobIds);
    }
}
